import store from '@/store';

export const getDownloadFresh = ()=> store.getters['app/getDownloadFresh'];
export const setDownloadFresh = async(downloadFresh) => {
  try{
    let promission = await store.dispatch('app/setDownloadFresh',downloadFresh);
    return true;
  }catch(e){
    return false;
  }
}

export const getPageJump = () => store.getters['app/getPageJump'];
export const setPageJump = async(val) => {
  try{
    let promission = await store.dispatch('app/setPageJump',val);
    return true;
  }catch(e){
    return false;
  }
}